/**
 * 
 */
package com.fox.webapp.persistent;

import java.util.List;

import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.fox.webapp.domain.Broker;
import com.fox.webapp.persistent.custom.BrokerRepositoryCustom;

/**
 * @author yockii
 *
 */
public interface BrokerRepository extends PagingAndSortingRepository<Broker, ObjectId>, BrokerRepositoryCustom {

	List<Broker> findByActiveIsTrueOrderByOrderAsc();

	Broker findByNameIgnoreCase(String name);

}
